package com.example.linearlayoutdemo;

// 数据类：封装数据库操作结果
public class OperationResult {
    private boolean isSuccess; // 是否成功
    private String message;    // 提示消息（如“添加失败：书号重复”）

    // 构造方法
    public OperationResult(boolean isSuccess, String message) {
        this.isSuccess = isSuccess;
        this.message = message;
    }

    // Getter
    public boolean isSuccess() { return isSuccess; }
    public String getMessage() { return message; }
}
